<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.flying.dcss.viewmodel.impl.UserListViewModel"%>
<%@page import="com.flying.dcss.app.SessionName"%>
<%@page import="com.flying.dcss.app.CommonHelper"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	List<UserListViewModel> models = (List<UserListViewModel>) request
			.getAttribute(SessionName.UserListSession);
	if (models == null)
		return;
%>
<html>
	<head>
		<link rel="stylesheet" href="style/css2.css" />
	</head>
	<body>
		<div class="contentcontainer">
			<div class="title" style="position:relative;top:20px;line-height:45px;font-size:17px;font-style:thin">
				查询条件
			</div><br/><br/>
			<div class="search" style="margin-top: 10px; margin-left: 10px;">
				<span>按条件查询:<select style="width:100px;height:25px"><option>姓名</option><option>部门</option></select></span>
				<input type="text" style="height:27px"/>
				<input type="submit" value="查询" class="btn"
					style="width: 60px; height: 30px; margin-left: 15px" />
					<br/><br/>
			<div class="title" style="position:relative;top:20px;line-height:45px;font-size:17px;font-style:thin">
				权限列表
			</div><br/>
			</div>
			<table class="tstyle" style="margin-top: 10px; float: left">
				<tr class="first">
					<td>
						姓名
					</td>
					<td>
						工号
					</td>
					<td>
						邮箱
					</td>
					<td>
						部门
					</td>
					<td>
						权限等级
					</td>
				</tr>
				<%
					for (UserListViewModel item : models) {
				%>
				<tr>
					<td>
						<%=item.getUserInfo().getRealName()%>
					</td>
					<td>
						<%=item.getUserInfo().getEmpoyeeNum()%>
					</td>
					<td>
						<%=item.getUser().getEmail()%>
					</td>
					<td>
						<%=item.getUserInfo().getDepartment()%>
					</td>
					<td>
						<%=CommonHelper.showLevelText(item.getUser()
								.getLevel())%>
					</td>
				</tr>
				<%
					}
				%>
			</table>
			<script language="javascript" type="text/javascript">
				var hl = document.getElementById("high2");
				hl.setAttribute("id", "active2");
			</script>
			</div>
	</body>
</html>